﻿<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>onStart()</title>
<meta name="GENERATOR" content="WinCHM">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">

</head>

<body><FONT size=2>
<P><FONT 
face=Courier><STRONG><FONT 
color=#000080>Director</FONT></STRONG>.<I>sharedDirector</I>().attachInView(</FONT></FONT><FONT 
face=Courier><FONT color=#ff0000 size=2>mGLSurfaceView</FONT><FONT 
size=2>);</FONT></FONT></P>
<P><FONT 
face=Courier><FONT 
size=2></FONT></FONT>&nbsp;</P>
<P><FONT face=Courier size=2>//xác lập một số 
điều</FONT></P><FONT 
face=Courier><FONT 
size=2><FONT size=2>
<P 
align=left><STRONG>Director</STRONG>.<I>sharedDirector</I>().<STRONG>setLandscape</STRONG>(</FONT><B><FONT 
color=#7f0055 size=2>false</B></FONT><FONT size=2>);</P>
<P 
align=left><STRONG>Director</STRONG>.<I>sharedDirector</I>().<U><STRONG>setDisplayFPS</STRONG></U>(</FONT><B><FONT 
color=#7f0055 size=2>true</B></FONT><FONT size=2>);</P>
<P><STRONG>Director</STRONG>.<I>sharedDirector</I>().<STRONG>setAnimationInterval</STRONG>(1.0f 
/ 60);</P>
<P> 
 &nbsp;</P><FONT size=2>
<P align=left><FONT color=#000000>Scene</FONT> <STRONG>scene</STRONG> = 
Scene.<I>node</I>();</P>
<P align=left><FONT 
color=#000080><STRONG>scene</STRONG></FONT>.addChild(<FONT color=#ff00ff> 
<EM><FONT >một hậu&nbsp;duệ 
nào&nbsp;đó&nbsp;của&nbsp;Layer</FONT></EM></FONT>&nbsp;);</P>
<P align=left>&nbsp;</P>
<P align=left>&nbsp;</P>
<P align=left><STRONG><FONT 
color=#000080>scene</FONT></STRONG>.runAction(RotateBy.<I>action</I>(4, -360));&nbsp;&nbsp;&nbsp; //không cần thiết - 
nếu code vào action này sẽ áp cho toàn bộ scence</P>
<P align=left> &nbsp;</P>
<P><STRONG><FONT color=#000080>Director</FONT></STRONG>.<I>sharedDirector</I>().runWithScene(<STRONG><FONT 
color=#000080>scene</FONT></STRONG>);</P></FONT></FONT></FONT></FONT></body>
</html>
